package com.ncwu.address.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ncwu.common.annotation.Excel;
import com.ncwu.common.core.domain.BaseEntity;

/**
 * 收货地址管理对象 tb_address
 * 
 * @author lq
 * @date 2025-05-13
 */
public class TbAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地址id */
    @Excel(name = "地址id")
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 县/区 */
    @Excel(name = "县/区")
    private String town;

    /** 手机 */
    @Excel(name = "手机")
    private String mobile;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String street;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contact;

    /** 是否是默认 1默认 0否 */
    @Excel(name = "是否是默认 1默认 0否")
    private String isDefault;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }

    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }

    public void setTown(String town) 
    {
        this.town = town;
    }

    public String getTown() 
    {
        return town;
    }

    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }

    public void setStreet(String street) 
    {
        this.street = street;
    }

    public String getStreet() 
    {
        return street;
    }

    public void setContact(String contact) 
    {
        this.contact = contact;
    }

    public String getContact() 
    {
        return contact;
    }

    public void setIsDefault(String isDefault) 
    {
        this.isDefault = isDefault;
    }

    public String getIsDefault() 
    {
        return isDefault;
    }

    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("province", getProvince())
            .append("city", getCity())
            .append("town", getTown())
            .append("mobile", getMobile())
            .append("street", getStreet())
            .append("contact", getContact())
            .append("isDefault", getIsDefault())
            .append("notes", getNotes())
            .toString();
    }
}
